#include<iostream>
#include<stdio.h>
using namespace std;
#include <iomanip>
#include  <cmath>
#include <stdlib.h>
#include <string.h>

int main()
{
    int i, b, c;
    cin >> i >> b >> c;
    int m, n, d;
    cin >> m >> n >> d;
    if (i <= m && b <= n)
    {
        cout << "yes";

    }
    else
        cout << "no";










}

